package java3_16.Pet;
//鹦鹉类 子类
public class Parrot extends Pet{
    public Parrot(String name,String type,String weight){
        super.setName(name);
        super.setType(type);
        super.setWeight(weight);
    }
    public void fly(){
        System.out.println("鹦鹉可以飞！");
    }
}
